﻿#include "CLogDetails.h"

CLogDetails::CLogDetails(QWidget *parent)
	: QDialog(parent)
{
	ui.setupUi(this);
	setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
	this->setWindowTitle(QString::fromLocal8Bit("日志详情"));
	connect(ui.pushButtonClose, &QPushButton::clicked, this, &CLogDetails::slotPushClose);
}

CLogDetails::~CLogDetails()
{}

void CLogDetails::setDate(QString sDeviceName,QString sTime, QString sFuncName,QString sLevel, QString sLog)
{
	ui.lineEditDeviceName->setText(sDeviceName);
	ui.lineEditFuncName->setText(sFuncName);
	ui.lineEditLevel->setText(sLevel);
	ui.lineEditTime->setText(sTime);
	ui.textEditLog->setText(sLog);
}

void CLogDetails::slotPushClose()
{
	this->close();
}
